<template>
  <div class="artwork-detail-view">
    <h1 class="view-title">画作详情</h1>
    <div class="content-placeholder">
      <el-empty description="画作详情功能正在开发中..."></el-empty>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { useRoute } from 'vue-router';

const route = useRoute();
const artworkId = ref(route.params.id);

// 在组件挂载时获取画作详情
onMounted(() => {
  // 这里可以添加获取画作详情的API调用
  console.log('获取画作ID:', artworkId.value);
});
</script>

<style lang="scss" scoped>
.artwork-detail-view {
  padding: 20px;
}

.view-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #333;
}

.content-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}
</style> 